/**
 * @author:cloud.lg
 * @date:2021.3.26
 * @description:这里主要包含后台接口的定义
 * @module user 用户模块
 */
import {get, post, fetch } from '../fetch'

//登录
export const login = (params) => post('/login', params, 'json');

//获取用户信息
export const getUserInfo = (params) => get('/getInfo', params, 'json');

//退出登录
export const logOut = (params) => fetch('/logout', params, 'query', 'get');

//查询用户详情
export const getUserDetail = (params) => get('/system/user/' + params.id, {}, 'json');

//修改密码
export const updateUserPwd = (params) => fetch('/system/common/changepwd', params, 'form', 'post');

//获取当前用户
export const getUserSession = (params) => get('/session', params, 'json');

